
package com.xnyzc.lhy.mis.feign;

import com.xnyzc.lhy.mis.feign.fallback.FeignMessageSendServiceFallback;
import com.xnyzc.lhy.resource.entity.jpush.BizResult;
import com.xnyzc.lhy.resource.entity.jpush.PushInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 极光推送服务间调用
 * </p>
 *
 * @author liuju
 * @since 2019-09-20
 */

@FeignClient(name = "${feign.applicationName.resource}", fallback = FeignMessageSendServiceFallback.class)
public interface FeignMessageSendService {


     /**
     * 极光推送
     *
     */
    @PostMapping("/push/message")
    BizResult pushMessage(@RequestBody PushInfoEntity pushInfoEntity);
}
